package com.jsmile.cloud.accountcenter.web.mq.order;

import org.springframework.stereotype.Component;

import com.jsmile.cloud.tradecenter.api.enums.OrderStatusEnum;
import com.jsmile.cloud.tradecenter.api.to.OrderStatusChangeTo;

import lombok.extern.slf4j.Slf4j;

/**
 * 订单发货策略
 *
 * @author gl
 */
@Slf4j
@Component
public class OrderDeliveryStrategy implements IOrderStatusStrategy {

    @Override
    public void execute(OrderStatusChangeTo orderStatusChangeTo) {
        log.info("订单支付事件：");
    }

    @Override
    public OrderStatusEnum orderStatus() {
        return OrderStatusEnum.TO_DELIVERY;
    }
}
